//
//  JLDataConvert.h
//  PaySDKDemo
//
//  Created by LZ on 2018/8/6.
//  Copyright © 2018年 JLPAY. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonCryptor.h>
#import <Security/Security.h>

@interface JLDataConvert : NSObject

+ (NSString *)convertDataToHexStr:(NSData *)data;

+ (NSData *)convertHexStrToData:(NSString *)str;

+ (NSString*)TripleDES:(NSString*)plainText encryptOrDecrypt:(CCOperation)encryptOrDecrypt;

+ (NSString *)hexStringFromString:(NSString *)string;

+ (NSString *)stringFromHexString:(NSString *)hexString;

+ (NSData *)AES128Encrypt:(NSData *)plainData key:(NSString *)key;

+(NSData *)AES128Decrypt:(NSData *)encryptData key:(NSString *)key;

+ (NSString *)convertHexStrToString:(NSString *)str;

+ (NSString*)hexConvertFromAscii:(NSString *)asciiString;

+ (NSString*)ASCIIConvertFromBCD:(NSString *)bcdString;

@end
